/**
 * 薪资计算器
 */
import java.util.Scanner;
public class SalaryCalulator {

    public static void main(String[] args) {
        Scanner s= new Scanner(System.in);
        while (true){
            System.out.println("请输入月薪：");
            int monthSalary = s.nextInt();
            System.out.println("请输入一年几个月薪资：");
            int months = s.nextInt();
            int yearSalary = monthSalary*months;
            System.out.println("年薪："+yearSalary);
            if(yearSalary>=200000){
                System.out.println("恭喜你超过98%的国人");
            }else if(yearSalary>=100000) {
                System.out.println("恭喜你超过90%的国人");
            }else {
                System.out.println("继续努力学习和工作,加油！");
            }
            System.out.println("输入88：退出系统l；输入66：继续计算");
            int com = s.nextInt();
            if(com==88){
                System.out.println("系统退出");
                break;
            }
            if(com==66){
                System.out.println("继续计算下一个年薪");
                continue;
            }
        }
    }
}
